﻿/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __DE762750_B7D1_4EDB_9C5E_78D8C6641F43__
#define __DE762750_B7D1_4EDB_9C5E_78D8C6641F43__


/////////////////////////////////////////////////////////////////////////////////////////
// 

namespace xos_box
{
    // 
    // lock num
    // 
    class i_lock_num : public xos::i_release
    {
    public:
        virtual ~i_lock_num()
        {}

    public:
        virtual int add( int nNum = 1 ) = 0;
        virtual int sub( int nNum = 1 ) = 0;
        virtual int set( int nNum ) = 0;
        virtual int get() = 0;
    };
}

#endif // __DE762750_B7D1_4EDB_9C5E_78D8C6641F43__
